package edu.mju.scenic.mapper;

import edu.mju.scenic.entity.Attractions;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author CBL
 * @since 2020-12-28
 */
public interface AttractionsMapper extends BaseMapper<Attractions> {

    /**
     * 根据名胜id单独逻辑删除名胜
     * @param id 名胜id
     * @return boolean值
     */
    boolean deleteByAttractionsId(Integer id);

    /**
     * 根据景点id逻辑删除名称
     * @param id 景点id
     * @return boolean
     */
    boolean deleteBySpotId(Integer id);
}
